package com.fpd.model.vo;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fpd.enums.CustSourceEnum;
import com.fpd.enums.FollowResultEnum;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @desc 案件跟进信息返回前端数据模型
 * @author wujiangbo
 * @date 2019年11月27日 下午2:30:41
 */
@Data
public class CaseFollowInfoVO implements Serializable {

	private static final long serialVersionUID = 8588265650159391734L;

	@ApiModelProperty(value = "主键ID(与业务无关)", example = "新增不填")
	private String id;

	@ApiModelProperty(value = "跟进时间", example = "")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	private Date followTime;

	@ApiModelProperty(value = "是否当日转化（0：否；1：是）", example = "")
	private int isTodayConversion;

	@ApiModelProperty(value = "客户号", example = "")
	private String custNo;

	@ApiModelProperty(value = "客户姓名", example = "")
	private String custName;

	@ApiModelProperty(value = "代偿还款人", example = "")
	private String reimbursementPayer;

	@ApiModelProperty(value = "是否结清（0：否；1：是）", example = "")
	private int isSettleAccounts;

	@ApiModelProperty(value = "承诺还款天数", example = "")
	private int promiseCount;

	@ApiModelProperty(value = "跟进记录", example = "")
	private String followRecord;

	@ApiModelProperty(value = "跟进方式", example = "")
	private String followWay;

	@ApiModelProperty(value = "跟进人姓名", example = "")
	private String followUserName;

	@ApiModelProperty(value = "跟进状态（0：即时跟进；1：逾期跟进）", example = "0")
	private int followState;

	@ApiModelProperty(value = "下次跟进时间", example = "")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	private Date nextFollowTime;

	@ApiModelProperty(value = "跟进结果", example = "")
	private String followResult;

	@ApiModelProperty(value = "附件编号", example = "")
	private String attachmentNo;

	@ApiModelProperty(value = "下次跟进要点", example = "")
	private String nextFollowPort;

	@ApiModelProperty(value = "联系人姓名", example = "")
	private String linkUserName;

	@ApiModelProperty(value = "联系人关系", example = "")
	private String linkUserRelationship;

	@ApiModelProperty(value = "联系人手机号", example = "")
	private String linkUserPhone;

	@ApiModelProperty(value = "最后一次提醒时间", example = "")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	private String remindTime;

	@ApiModelProperty(value = "跟进提醒状态（0：过期的提醒 1：有效的提醒）", example = "")
	private int remindState;

	@ApiModelProperty(value = "跟进提醒次数", example = "")
	private int remindCount;

	@ApiModelProperty(value = "提醒提交时间", example = "")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	private String remindSubmitTime;
	
	private String followUserId;//跟进人id
	private String custSource;//客户来源
    private String custSourceName;//客户来源中文
	private String beginTimeStart;//催记开始时间
	private String beginTimeEnd;//催记时间结束
	private String thirdParty;
	private String thirdPartyName;
	private String followResultName;//跟进结果中文
	private BigDecimal yuqiAmount;//逾期金额
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	private Date beginTimeCase;//客户委案开始时间
	private String phoneNumber;//客户电话
	
	

	public String getCustSourceName() {
		return CustSourceEnum.getNameByValue(this.custSource);
	}
	
	public String getFollowResultName() {
		return FollowResultEnum.getNameByValue(this.followResult);
	}

}
